<HTML><HEAD><TITLE>receive_notifications(+ReceivePort, -Messages, -Status)</TITLE>
</HEAD><BODY>[ <A HREF="index.html">library(notify_ports)</A> | <A HREF="../../index.html">Reference Manual</A> | <A HREF="../../fullindex.html">Alphabetic Index</A> ]
<H1>receive_notifications(+ReceivePort, -Messages, -Status)</H1>
Receive a list of currently available notification messages
<DL>
<DT><EM>ReceivePort</EM></DT>
<DD>a receiver structure as created by open_receiver
</DD>
<DT><EM>Messages</EM></DT>
<DD>a variable, will be bound to a list
</DD>
<DT><EM>Status</EM></DT>
<DD>a variable, will be bound to 'open' or 'closed'
</DD>
</DL>
<H2>Description</H2>

    This predicate retrieves all the messages that are currently
    available at the given receive port.  This means all messages that
    were sent via the associated send port but have not yet been
    retrieved from this receive port. The messages are listed in the
    order in which they were sent.
    <P>
    The Status argument indicates whether the associated sender is still
    open ('open') or has been closed ('closed'). If closed, no more
    messages will arrive on this receive port in the future.
    
<H2>See Also</H2>
<A HREF="../../lib/notify_ports/foreachnotification-6.html">foreachnotification / 6</A>
</BODY></HTML>
